home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shore_siege.swf / scripts / DefineSprite_416 / frame_179 / PlaceObject2_409_13 / CLIPACTIONRECORD onClipEvent(enterFrame).as < prev    next >
Text File  |  2011-08-19  |  733b  |  42 lines

  1. onClipEvent(enterFrame){
  2.    if(active == true)
  3.    {
  4.       _Y = _Y + 15;
  5.       if(_yscale < 200)
  6.       {
  7.          _yscale = _yscale + 10;
  8.          _xscale = _xscale + 10;
  9.       }
  10.       _X = _X - 30;
  11.    }
  12.    else if(timer < 200)
  13.    {
  14.       timer++;
  15.    }
  16.    else
  17.    {
  18.       trace(_xscale);
  19.       if(scaleSwitch == true)
  20.       {
  21.          if(_xscale < 100)
  22.          {
  23.             _xscale = _xscale + 5;
  24.             _yscale = _yscale + 5;
  25.          }
  26.          else
  27.          {
  28.             scaleSwitch = false;
  29.          }
  30.       }
  31.       else if(_xscale > 50)
  32.       {
  33.          _xscale = _xscale - 5;
  34.          _yscale = _yscale - 5;
  35.       }
  36.       else
  37.       {
  38.          scaleSwitch = true;
  39.       }
  40.    }
  41. }
  42.